<div class="content">
	<form method="post" action="<?=n_url('open','fieldSave')?>">
	<dl class="n-form" style="line-height: 26px;">


		<dt>字段:</dt>
		<dd>
			<input type="text" name="kname" value="<?=$data['info']['kname']?>" />
		</dd>

		<dt>数据类型:</dt>
		<dd><input type="text" name="vtype" value="<?=empty($data['info']['vtype'])?'':$data['info']['vtype']?>" /></dd>
		
		<dt>是否必填:</dt>
		<dd>
			<input type="radio" name="isignore" value="N"<?=empty($data['info'])||'N'==$data['info']['isignore']?' checked':''?> />是
			<input type="radio" name="isignore" value="Y"<?=!empty($data['info'])&&'Y'==$data['info']['isignore']?' checked':''?> />否

		<dt>说明:</dt>
		<dd>
			<textarea name="descript"><?=empty($data['info']['descript'])?'':$data['info']['descript']?></textarea>
		</dd>

		<dt>示例:</dt>
		<dd>
			<textarea name="val_example"><?=empty($data['info']['val_example'])?'':$data['info']['val_example']?></textarea>
		</dd>

		<dt>&nbsp;</dt>
		<dd>
			<?php
			if(!empty($data['id'])){
			?>
			<input type="hidden" name="id" value="<?=$data['id']?>" />
			<?php
			}else{
			?>
			<input type="hidden" name="api_id" value="<?=$data['apiId']?>" />
			<?php
			}
			?>
			<input type="submit" />
		</dd>
	</dl>
	</form>
</div>	
